#ifndef REGIONGROUP_H
#define REGIONGROUP_H

#include <QGraphicsRectItem>

class FovButton;
class RegionGroup : public QGraphicsRectItem
{
public:
    RegionGroup(qreal x,qreal y,qreal w,qreal h,qreal regionId,int fovRowCount,int fovColCount);
    QList<FovButton*> FovButtons()const {return fovButtons;}

    void addFovButton(FovButton* button);

protected:
    void mousePressEvent(QGraphicsSceneMouseEvent *event) override;
    void hoverEnterEvent(QGraphicsSceneHoverEvent *event) override;
    void hoverLeaveEvent(QGraphicsSceneHoverEvent *event) override;

private:
    QList<FovButton*> fovButtons;
    int regionId;

};

#endif // REGIONGROUP_H
